[release-5.0] USHIFT-7501: Stop openvswitch after OVN cleanup in microshift-cleanup-data - #7365
Conversation
…-data After `microshift-cleanup-data --all` (or `--ovn`) stops ovsdb-server and kills the OVN processes, ovs-vswitchd is left running without its database, so stale OVS datapath/flow state persists. On the next MicroShift start ovnkube-node fatals during init while clearing stale OVS flow targets: failed to init default node network controller: error clearing stale ovs flow targets: "exit status 1" ovnkube-node then crash-loops, never writes the node chassis / gateway config, and every pod is stuck FailedCreatePodSandBox / NetworkPluginNotReady until the healthcheck times out. This was observed intermittently under heavy full-optional load (e.g. the el98-lrel@optional release scenario). Stop openvswitch.service after the OVN process cleanup so the stale state is cleared. The next MicroShift start brings openvswitch back up via microshift.service's Wants and microshift-ovs-init.service's Requires, giving OVN a clean slate to reinitialize. Unlike the best-effort kills above, a real stop failure here has a correctness impact, so it is surfaced rather than discarded. The underlying fragility (ovnkube-node treating the ovs-vsctl failure as fatal) is upstream ovn-kubernetes; this change removes the precondition on the MicroShift side. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> pre-commit.check-secrets: ENABLED
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@openshift-cherrypick-robot: Ignoring requests to cherry-pick non-bug issues: USHIFT-7501 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: openshift-cherrypick-robot The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/pipeline required |
|
Scheduling tests matching the |
|
/label backport-risk-assessed |
|
/test e2e-aws-tests-release |
|
@openshift-cherrypick-robot: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
This is an automated cherry-pick of #7347
/assign agullon